import React from 'react';
import { SectionDescriptionTran, SPLFormDefaultValue } from '@/constants/constants';
import { DropdownMenu } from '@taroify/core';

interface ButtonSectionProps {
  key: string;
  sectionData: { sectionType: string };
  onChange: (newContent: { subSectionId: string, subSectionType: string, content: string }) => void;
}

const SubSectionButton: React.FC<ButtonSectionProps> = ({ key, sectionData, onChange }) => {
  const defaultValues = SPLFormDefaultValue[sectionData.sectionType];


  return (
    <DropdownMenu key={key} style={{ width: '100%', borderRadius: '10px'}} direction='up'>
      <DropdownMenu.Item title='选择子模块'>
        <DropdownMenu.Option value={0}>详细描述</DropdownMenu.Option>
        <DropdownMenu.Option value={1}>规则约束</DropdownMenu.Option>
      </DropdownMenu.Item>
    </DropdownMenu>
  );
};

export default SubSectionButton;
